package org.gd.hellojaxb.privat24.regular;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "request")
@XmlAccessorType(XmlAccessType.FIELD)
public class GetRegularPayRequest {

    @XmlRootElement(name = "id")
    @XmlAccessorType(XmlAccessType.FIELD)
    @SuppressWarnings("unused")
    public static final class Request {
        @XmlAttribute(name = "Clid")
        private Long userId;
        @XmlAttribute(name = "Bank")
        private RegularPayBank bank;

        public Request() {
        }

        public Long getUserId() {
            return userId;
        }

        public Request setUserId(Long userId) {
            this.userId = userId;
            return this;
        }

        public RegularPayBank getBank() {
            return bank;
        }

        public Request setBank(RegularPayBank bank) {
            this.bank = bank;
            return this;
        }
    }

    @XmlElement(name = "id")
    private Request request;

    public GetRegularPayRequest() {
        request = new Request();
    }

    public Request getRequest() {
        return request;
    }
}
